package com.unlcn.ils.kas.dao.mapper.order;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.unlcn.ils.kas.dao.model.order.OrderOtdDetail;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 订单在途跟踪明细 Mapper 接口
 * </p>
 *
 * @author qichao
 * @since 2018-03-06
 */
@Mapper
public interface OrderOtdDetailMapper extends BaseMapper<OrderOtdDetail> {

    /**
     * 批量新增
     * 
     * @param orderOtdDetailList
     */
    Integer batchInsert(@Param("orderOtdDetailList") List<OrderOtdDetail> orderOtdDetailList);

    /**
     * 查询最新在途信息
     * 
     * @param headId
     * @return
     */
    OrderOtdDetail selectNewestInfo(@Param("sysOrderNo") String sysOrderNo);
}
